<?php
require_once '../../global.inc.php';
$tag = $_GET["tag"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../js/Calendar.js"></script>
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.input1 {
	width:100%;
}
div{margin:0 10px}
.STYLE1  {color: #e1e2e3; font-size: 12px;}
.STYLE6  {color: #000000; font-size: 12px;}
.STYLE10 {color: #000000; font-size: 12px;}
.STYLE19 {color: #344b50; font-size: 12px;}
.STYLE21 {color: #3b6375; font-size: 12px;}
.STYLE22 {color: #295568; font-size: 12px;}
-->
</style>
</head>

<body>
<?php 
if ($tag=="q"){
	echo "<div align='center'><h3>活动实例查询</h3></div>";
}else if($tag=="e"){
	echo "<div align='center'><h3>活动实例维护</h3></div>";
}else if($tag=="s"){
	echo "<div align='center'><h3>活动积分结算</h3></div>";
}
?>

<form action="../../action/instanceAction.php?op=query&tag=<?php echo $tag?>" method="post">
<table align="center"  width="95%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a8c7ce">
	<tr>
		<td width="7%" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">活动名称：</span></div></td>
		<td bgcolor="#FFFFFF" class="STYLE6"><div align="center"><input type="text" class="input1" id = "activityName" name="activityName" /></div></td>
		<td width="7%" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">领队姓名：</span></div></td>
		<td bgcolor="#FFFFFF" class="STYLE6"><div align="center"><input type="text" class="input1" id = "leader" name="leader" /></div></td>
		<td width="10%" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">活动时间大于：</span></div></td>
		<td bgcolor="#FFFFFF" class="STYLE6"><div align="center"><input type="text" class="input1" id = "beginDate" name="beginDate" onclick="calendar(this)"/></div></td>
		<td width="10%" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">活动时间小于：</span></div></td>
		<td bgcolor="#FFFFFF" class="STYLE6"><div align="center"><input type="text" class="input1" id = "endDate" name="endDate" onclick="calendar(this)"/></div></td>
		<td width="7%" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">活动状态：</span></div></td>
		<td bgcolor="#FFFFFF" class="STYLE6"><div align="center">
        	<select class="input1"  name='status' id='status'>
        	<?php 
        		if($tag=="q"){
        			echo "<option  value='' selected='selected'>请选择</option>";
        		}
        		if($tag=="q"||$tag=="e"){//维护界面只能查询取消和刚生成的活动实例
					echo "<option  value='1' >活动生成</option>";
					echo "<option  value='0'>活动取消</option>";
				}
				if($tag=="q"||$tag=="s"){//积分结算只能针对结束了的活动
					echo "<option  value='2'>活动结束</option>";
				}
				if($tag=="q"){
					echo "<option  value='3'>积分结算</option>";
				}
			?>
            </select>
		</div></td>
	</tr>

	<tr bgcolor="#FFFFFF">
    	<td colspan="10"><div align="center"><input type="submit" id = "submit" name="submit" value="查询"/></div></td>
    </tr>
</table>
</form>
</body>
</html>
